package services

import (
	"system_go/dao"
	"system_go/models"
)

func Get_Users(name string) (error, []models.Users, int64) {
	var staffData []models.Users
	page := 1
	pageSize := 1
	searchName := name
	err, staffData, total := dao.GetAllUsers(map[string]interface{}{"page": page, "limit": pageSize, "searchName": searchName})
	return err, staffData, total
}
